﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="CotPlanVueloCliente.aspx.cs"
    Inherits="CotPlanVueloCliente" %>

<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Untitled Page</title>
    <link href="estilos/estilocotizadorviajes.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
      
    </style>
</head>
<body class="innercontent">
    <form id="form1" runat="server">
    <div>
        <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
        <asp:Panel ID="Panel1" runat="server" Height="100%" Width="799px">
            <table style="width: 800px; height: 242px;">
                <tr>
                    <td bgcolor="#3399FF" colspan="5">
                        <asp:Label ID="Label1" runat="server" ForeColor="White" Text="Cotizador Plan de Vuelo"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td width="20%">
                        <asp:RadioButton ID="RadioButton1" runat="server" Text="Ida y vuelta" Checked="True"
                            GroupName="TipoPasaje" />
                    </td>
                    <td width="20%">
                        <asp:RadioButton ID="RadioButton2" runat="server" Text="Solo Ida" GroupName="TipoPasaje" />
                    </td>
                    <td width="20%">
                        &nbsp;
                        <asp:CheckBox ID="cHKMultiplesDestinos" runat="server" 
                            Text="Multiples Destinos" 
                            oncheckedchanged="cHKMultiplesDestinos_CheckedChanged" 
                            AutoPostBack="True" />
                    </td>
                    <td>
                        <asp:Button ID="btnAddDestino" runat="server" CssClass="cssButtonLarge" 
                            Text="Nuevo Destino" Width="139px" onclick="btnAddDestino_Click" />
                    </td>
                    <td width="20%" >
                        <asp:Button ID="btnEliminarDestino" runat="server" CssClass="cssButtonLarge" 
                            onclick="btnAddDestino_Click" Text="Eliminar Destino" Width="139px" />
                    </td>
                </tr>
                <tr>
                    <td colspan="5" style="height: 100% width:20%" valign="top">
                        <telerik:RadGrid ID="RadGrid1" runat="server" AutoGenerateColumns="False" GridLines="None"
                            Skin="Office2007">
                            <ClientSettings  EnablePostBackOnRowClick="True">
                    <Selecting AllowRowSelect="True" />
                </ClientSettings>
                            <MasterTableView ShowFooter="True">
                             <NoRecordsTemplate>
                        <div>
                            Adicionar Plan Vuelo</div>
                       </NoRecordsTemplate>
                                <RowIndicatorColumn Visible="False">
                                    <HeaderStyle Width="20px"></HeaderStyle>
                                </RowIndicatorColumn>
                                <ExpandCollapseColumn Visible="False" Resizable="False">
                                    <HeaderStyle Width="20px"></HeaderStyle>
                                </ExpandCollapseColumn>
                                <Columns>
                                    <telerik:GridTemplateColumn DataField="CodigoCiudadOrigen" HeaderText="Ciudad Origen">
                                        <ItemTemplate>
                                            <asp:DropDownList ID="DropDownList1" runat="server" CssClass="commonlist" Width="150px"
                                                DataSource="<%# DropDownCiudad.Items %>" DataTextField="Text" DataValueField="Value">
                                            </asp:DropDownList>
                                        </ItemTemplate>
                                    </telerik:GridTemplateColumn>
                                    <telerik:GridTemplateColumn DataField="CodigoCiudadDestino" HeaderText="Ciudad Destino">
                                        <ItemTemplate>
                                            <asp:DropDownList ID="DropDownList2" runat="server" CssClass="commonlist" Width="150px"
                                                DataTextField="" DataValueField="">
                                            </asp:DropDownList>
                                        </ItemTemplate>
                                    </telerik:GridTemplateColumn>
                                    <telerik:GridTemplateColumn DataField="Fecha" HeaderText="Fecha">
                                        <ItemTemplate>
                                            <telerik:RadDatePicker ID="RadDatePicker1" runat="server">
                                            </telerik:RadDatePicker>
                                        </ItemTemplate>
                                    </telerik:GridTemplateColumn>
                                    <telerik:GridTemplateColumn DataField="CodigoHorario" HeaderText="Horario">
                                        <ItemTemplate>
                                            <asp:DropDownList ID="DropDownList3" runat="server" CssClass="commonlist" Width="100px">
                                            </asp:DropDownList>
                                        </ItemTemplate>
                                    </telerik:GridTemplateColumn>
                                    <telerik:GridTemplateColumn DataField="CodigoRadio" HeaderText="Radio">
                                        <ItemTemplate>
                                            <asp:DropDownList ID="DropDownList4" runat="server" CssClass="commonlist" Width="100px">
                                            </asp:DropDownList>
                                        </ItemTemplate>
                                    </telerik:GridTemplateColumn>
                                </Columns>
                                <EditFormSettings>
                                    <PopUpSettings ScrollBars="None"></PopUpSettings>
                                </EditFormSettings>
                            </MasterTableView>
                        </telerik:RadGrid>
                        <table style="width: 800px;">
                            <tr>
                                <td bgcolor="#3399FF" colspan="5">
                                    <asp:Label ID="Label13" runat="server" ForeColor="White" Text="Pasajeros"></asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <td align="left">
                                    <asp:Label ID="Label10" runat="server" CssClass="aLabel" Text="Adultos"></asp:Label>
                                </td>
                                <td align="left">
                                    <asp:Label ID="Label11" runat="server" CssClass="aLabel" 
                                        Text=" Niños (2 a 11 años)"></asp:Label>
                                </td>
                                <td class="style1">
                                    <asp:Label ID="Label12" runat="server" CssClass="aLabel" 
                                        Text="Infantes (0 a 1 año)"></asp:Label>
                                </td>
                                <td class="style2">
                                    <asp:Label ID="Label14" runat="server" CssClass="aLabel" Text="Clase"></asp:Label>
                                </td>
                                <td style="width: 25%" width="50%">
                                    Aerolineas
                                </td>
                            </tr>
                            <tr>
                                <td align="left">
                                    <asp:DropDownList ID="DropDownList7" runat="server" CssClass="commonlist" 
                                        Height="16px" Width="44px">
                                    </asp:DropDownList>
                                </td>
                                <td align="left">
                                    <asp:DropDownList ID="DropDownList8" runat="server" CssClass="commonlist" 
                                        Height="16px" Width="42px">
                                    </asp:DropDownList>
                                </td>
                                <td align="left" class="style1">
                                    <asp:DropDownList ID="DropDownList9" runat="server" CssClass="commonlist" 
                                        Height="16px" Width="46px">
                                    </asp:DropDownList>
                                </td>
                                <td class="style2">
                                    <asp:DropDownList ID="DropDownList10" runat="server" CssClass="commonlist" 
                                        Height="16px" Width="107px">
                                    </asp:DropDownList>
                                </td>
                                <td>
                                    <asp:DropDownList ID="DropDownList11" runat="server" CssClass="commonlist" 
                                        Height="18px" Width="170px">
                                    </asp:DropDownList>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    &nbsp;
                                </td>
                                <td>
                                    &nbsp;
                                </td>
                                <td class="style1">
                                    &nbsp;
                                </td>
                                <td class="style2">
                                    &nbsp;
                                </td>
                                <td>
                                    <asp:CheckBox ID="CheckBox2" runat="server" Text="Combinar Lineas Aereas" />
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
            </table>
        </asp:Panel>
    </div>
    <table style="width: 800px;">
        <tr>
            <td bgcolor="#3399FF" colspan="5" >
                <asp:Label ID="Label15" runat="server" ForeColor="White" Text="Cierre de Cotizaciones"></asp:Label>
            </td>
        </tr>
        <tr>
            <td class="style11" align="center" valign="top">
                <asp:RadioButton ID="RbNormal" runat="server" Text="Solicitud Normal" Checked="True"
                    GroupName="TipoSol" AutoPostBack="True" 
                    oncheckedchanged="RbNormal_CheckedChanged" />
            &nbsp;
            </td>
            <td class="style8" align="center" valign="top" width="25%">
                <asp:RadioButton ID="RbUrgente" runat="server" Text="Solicitud de Urgencia " 
                    GroupName="TipoSol" AutoPostBack="True" 
                    oncheckedchanged="RbNormal_CheckedChanged" />
            </td>
            <td align="left" valign="top">
                    <asp:Button ID="btnPasajeros" runat="server" CssClass="cssButtonLarge" 
                            Text="Pasajeros" Width="70px" 
                            OnClientClick="AbrirVentanaPasajeros(); return false;" 
                    Height="17px" onclick="btnPasajeros_Click"/>
            </td>
            <td class="style12">
            </td>
        </tr>
        <tr>
            <td class="style11">
                <asp:Label ID="Label16" runat="server" Text="Fecha y Hora:" CssClass="aLabel"></asp:Label>
            </td>
            <td class="style8">
                <telerik:RadDateTimePicker ID="RadDateTimePicker1" runat="server">
                </telerik:RadDateTimePicker>
            </td>
            <td class="style13">
                <asp:Label ID="Label17" runat="server" Text="Vigencia Cotizacion" CssClass="aLabel"></asp:Label>
            </td>
            <td class="style12" align="left">
                <asp:DropDownList ID="DropDownList12" runat="server" CssClass="commonlist" Height="17px"
                    Width="104px">
                </asp:DropDownList>
            </td>
            <td style="width: 30%">
                &nbsp;
            </td>
        </tr>
        <tr>
            <td class="style11">
                <asp:Label ID="Label18" runat="server" Text="Observaciones" CssClass="aLabel"></asp:Label>
            </td>
            <td class="style8">
                &nbsp;
            </td>
            <td class="style13">
                &nbsp;
            </td>
            <td class="style12">
                &nbsp;
            </td>
            <td style="width: 25%">
                &nbsp;
            </td>
        </tr>
        <tr>
            <td class="style3" colspan="5">
                <asp:TextBox ID="TextBox1" runat="server" Height="70px" TextMode="MultiLine" Width="792px"></asp:TextBox>
            </td>
        </tr>
    </table>
    <table style="width: 800px;">
        <tr>
            <td bgcolor="#3399FF" colspan="5" >
                <asp:Label ID="Label19" runat="server" ForeColor="White" Text="Agregar Proveedores por Region"></asp:Label>
            </td>
        </tr>
        <tr>
            <td  rowspan="4" width="20%">
                <asp:ListBox ID="ListBox1" runat="server" Height="116px" Width="222px"></asp:ListBox>
            </td>
            <td align="center" width="20%">
                <asp:Button ID="Button1" runat="server" Text="Agregar &gt;" CssClass="cssButtonSmall" />
            </td>
                <td class="style2" rowspan="4" width="20%">
                <asp:ListBox ID="ListBox2" runat="server" Height="116px" Width="222px"></asp:ListBox>
            </td>
            <td width="50%" style="width: 25%">
                &nbsp;
            </td>
        </tr>
        <tr>
            <td class="style6" align="center">
                <asp:Button ID="Button2" runat="server" Text="Agregar Todos &gt;&gt;" CssClass="cssButtonLarge"
                    Width="120px" />
            </td>
            <td class="style7">
                &nbsp;
            </td>
            <td width="50%" style="width: 25%">
                &nbsp;
            </td>
        </tr>
        <tr>
            <td class="style6" align="center">
                <asp:Button ID="Button3" runat="server" Text="&lt; Quitar" CssClass="cssButtonSmall" />
            </td>
            <td class="style7">
                &nbsp;
            </td>
            <td width="50%" style="width: 25%">
                &nbsp;
            </td>
        </tr>
        <tr>
            <td class="style6" align="center">
                &nbsp;
            </td>
            <td class="style7">
                &nbsp;
            </td>
            <td width="50%" style="width: 25%">
                &nbsp;
            </td>
        </tr>
    </table>
    <asp:Button ID="Button4" runat="server" Text="Guardar" CssClass="cssButtonSmall" />
    <asp:Button ID="Button5" runat="server" Text="Enviar &gt;&gt;" CssClass="cssButtonSmall" />
    <asp:DropDownList ID="DropDownCiudad" runat="server" Height="16px" Width="198px">
    </asp:DropDownList>
     <telerik:RadWindowManager  ID="RadWindowManagerCotizador" runat="server" Skin="Telerik" >
        <Windows>
            <telerik:RadWindow ID="AdvancedForm" runat="server" Title="Pasajeros" Height="500px" Width="500px"
                ReloadOnShow="true" Modal="true" Skin="Telerik" VisibleStatusbar="false"   >
            </telerik:RadWindow>
        </Windows>
    </telerik:RadWindowManager>
    
     <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
         <AjaxSettings>
             <telerik:AjaxSetting AjaxControlID="cHKMultiplesDestinos">
                 <UpdatedControls>
                     <telerik:AjaxUpdatedControl ControlID="btnAddDestino" />
                     <telerik:AjaxUpdatedControl ControlID="btnEliminarDestino" />
                 </UpdatedControls>
             </telerik:AjaxSetting>
             <telerik:AjaxSetting AjaxControlID="btnAddDestino">
                 <UpdatedControls>
                     <telerik:AjaxUpdatedControl ControlID="RadGrid1" />
                 </UpdatedControls>
             </telerik:AjaxSetting>
             <telerik:AjaxSetting AjaxControlID="btnEliminarDestino">
                 <UpdatedControls>
                     <telerik:AjaxUpdatedControl ControlID="RadGrid1" />
                 </UpdatedControls>
             </telerik:AjaxSetting>
             <telerik:AjaxSetting AjaxControlID="RbNormal">
                 <UpdatedControls>
                     <telerik:AjaxUpdatedControl ControlID="RbNormal" />
                     <telerik:AjaxUpdatedControl ControlID="RbUrgente" />
                     <telerik:AjaxUpdatedControl ControlID="btnPasajeros" />
                 </UpdatedControls>
             </telerik:AjaxSetting>
             <telerik:AjaxSetting AjaxControlID="RbUrgente">
                 <UpdatedControls>
                     <telerik:AjaxUpdatedControl ControlID="RbNormal" />
                     <telerik:AjaxUpdatedControl ControlID="RbUrgente" />
                     <telerik:AjaxUpdatedControl ControlID="btnPasajeros" />
                 </UpdatedControls>
             </telerik:AjaxSetting>
         </AjaxSettings>
    </telerik:RadAjaxManager>
    
     <script id="script1" type="text/javascript">
         
            function AbrirVentanaPasajeros()
            {
                 window.radopen("Pasajeros.aspx", "AdvancedForm");  
              }
             
    </script>
    <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" Runat="server" 
        height="75px" width="75px">
        <img alt="Loading..." 
            src='<%= RadAjaxLoadingPanel.GetWebResourceUrl(Page, "Telerik.Web.UI.Skins.Default.Ajax.loading.gif") %>' 
            style="border:0px;" />
    </telerik:RadAjaxLoadingPanel>
    </form>
</body>
</html>
